import { createStore, combineReducers, applyMiddleware } from 'redux'
import thunk from 'redux-thunk'
// 自定义模块，如果暴露的时候使用的是export default  不需要解构
// 如果暴露的时候使用的 是  export const 或者是export function 需要解构引入
import {home} from './reducers/home'
import {user} from './reducers/user'
const reducer = combineReducers({
  home,
  user
})

const store = createStore(reducer, applyMiddleware(thunk))

export default store